package cn.darkhorse.workorder.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.darkhorse.workorder.mapper.QmsWorkorderAuditMapper;
import cn.darkhorse.workorder.domain.QmsWorkorderAudit;
import cn.darkhorse.workorder.service.IQmsWorkorderAuditService;

/**
 * 数据审核Service业务层处理
 *
 * @author ytq
 * @date 2024-07-19
 */
@Service
public class QmsWorkorderAuditServiceImpl extends ServiceImpl<QmsWorkorderAuditMapper, QmsWorkorderAudit> implements IQmsWorkorderAuditService
{
    @Autowired
    private QmsWorkorderAuditMapper qmsWorkorderAuditMapper;


    @Override
    public QmsWorkorderAudit getByOrderNumber(String orderNumber) {
        return lambdaQuery().eq(QmsWorkorderAudit::getOrderNumber, orderNumber).one();
    }



    /**
     * 新增数据审核
     *
     * @param qmsWorkorderAudit 数据审核
     * @return 结果
     */
    @Override
    public boolean saveQmsWorkorderAudit(QmsWorkorderAudit qmsWorkorderAudit) {
        return saveOrUpdate(qmsWorkorderAudit);
    }

}
